package com.briup.interfance;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/10/5-10-05-9:39
 * @Description：com.briup.interfance     行为参数化
 */
public class Calculate {
    public static void main(String[] args) {
        Calcu add = (a, b) -> (double) a+(double) b;
        System.out.println(add.cal(2, 12));
    }
}
interface Calcu<T>{
    T cal(T a,T b);
}
//class ActionImpl implements Action{
//
//    @Override
//    public double cal(Object a, Object b) {
//        return (double)a+(double)b;
//    }
//
//}
